package cloud.xlh.my_system.mapper;

import cloud.xlh.my_system.pojo.GenTable;
import lombok.Data;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : code-generator
 * @ Author: XuLeHuang
 * @ Date: 2022/6/20 15:36
 * @ Description:
 */
public interface GenTableMapper {
    List<GenTable> findAllTableByDatabaseIdToPage(@Param("databaseId") Long databaseId, @Param("limit")int limit, @Param("page")int page);

    int insertGenTable(GenTable table);

    GenTable selectGenTableByName(String tableName);

    List<GenTable> findAllTableByDatabaseName(String dbName);

    List<GenTable> findAllTableByDatabaseId(String databaseId);

    void deleteGenTableByGenTableId(String tableId);
}
